package com.qfmy.model.entity.user;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author 清风明月
 * @Package com.qfmy.model.entity.user
 * @date 2025/10/30
 * @description 公共类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseEntity {

    @Schema(description = "主键，自增")
    private Integer id;

    @Schema (description = "逻辑删除：0 = 未删除（默认），1 = 已删除")
    private Integer isDeleted;

    @Schema (description = "创建时间（用户注册时间，默认当前时间）")
    private LocalDateTime createTime;

    @Schema (description = "更新时间（用户信息最后修改时间，默认当前时间，更新时自动刷新）")
    private LocalDateTime updateTime;

}
